package com.stormrage.entity.edu.view;

import java.io.Serializable;

/**
 * @Title: EduCourseChapter.java
 * @Package com.stormrage.entity.edu
 * @Description: 课程、章节关联 Entity 类
 * @author www.stormragetech.com
 * @date 2016年4月8日
 * @version V1.0
 */
public class EduCourseChapter implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 6222591152659201287L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer courseId;

	private Integer chapId;

	// ------------------------------- Fields -------------------------------

	public EduCourseChapter() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public Integer getChapId() {
		return chapId;
	}

	public void setChapId(Integer chapId) {
		this.chapId = chapId;
	}

	// ------------------------------- Fields -------------------------------

	public static EduCourseChapter instance(Integer courseId, Integer chapId) {
		EduCourseChapter entity = new EduCourseChapter();
		entity.setCourseId(courseId);
		entity.setChapId(chapId);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " courseId - " + courseId + " chapId - " + chapId;
	}

}
